package com.example.cloudcashierpos.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class sysuser {
    // 序列
    @Id
    private Integer id;

    // 店铺id
    private Integer corpId;

    // 门店id
    private Integer storeId;

    // 账号
    private String userName;

    // 手机号
    private String phone;

    // 密码
    private String passWord;

    // 昵称
    private String nickName;

    // 是否为员工账户(0管理员 1员工,2是股东)
    private Integer userType;

    // 性别
    private Integer sex;

    // 邮箱
    private String email;

    // 真实姓名
    private String trueName;

    // 机构id
    private Integer organizationId;

    // 状态,0正常,1冻结,2审核中
    private Integer state;

    // 是否删除
    private Boolean deleted;

    // 是否门店注册帐号
    private Integer registerFlag;

    // 登录token
    private String ccessToken;

    // 登录时间
    private Date loginTime;

    // 角色Ids
    private String roleIds;

    // 修改时间截
    private Long modifyTime;

    @Generated(hash = 888844680)
    public sysuser(Integer id, Integer corpId, Integer storeId, String userName,
            String phone, String passWord, String nickName, Integer userType,
            Integer sex, String email, String trueName, Integer organizationId,
            Integer state, Boolean deleted, Integer registerFlag, String ccessToken,
            Date loginTime, String roleIds, Long modifyTime) {
        this.id = id;
        this.corpId = corpId;
        this.storeId = storeId;
        this.userName = userName;
        this.phone = phone;
        this.passWord = passWord;
        this.nickName = nickName;
        this.userType = userType;
        this.sex = sex;
        this.email = email;
        this.trueName = trueName;
        this.organizationId = organizationId;
        this.state = state;
        this.deleted = deleted;
        this.registerFlag = registerFlag;
        this.ccessToken = ccessToken;
        this.loginTime = loginTime;
        this.roleIds = roleIds;
        this.modifyTime = modifyTime;
    }

    @Generated(hash = 485678010)
    public sysuser() {
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCorpId() {
        return this.corpId;
    }

    public void setCorpId(Integer corpId) {
        this.corpId = corpId;
    }

    public Integer getStoreId() {
        return this.storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassWord() {
        return this.passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getNickName() {
        return this.nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getUserType() {
        return this.userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getSex() {
        return this.sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTrueName() {
        return this.trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public Integer getOrganizationId() {
        return this.organizationId;
    }

    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }

    public Integer getState() {
        return this.state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Boolean getDeleted() {
        return this.deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Integer getRegisterFlag() {
        return this.registerFlag;
    }

    public void setRegisterFlag(Integer registerFlag) {
        this.registerFlag = registerFlag;
    }

    public String getCcessToken() {
        return this.ccessToken;
    }

    public void setCcessToken(String ccessToken) {
        this.ccessToken = ccessToken;
    }

    public Date getLoginTime() {
        return this.loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getRoleIds() {
        return this.roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

    public Long getModifyTime() {
        return this.modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }
}
